/**
 * 
 */
package model;

/**
 * @author yuqi
 *
 */
public class BookDetail {
	private int id;
	private int book_id;
	private String dessert_name;
	private double price;
	private int quantity;
	private double discount;
	private double subtotal;
	
	/**
	 * use to do select
	 * @param id
	 * @param book_id
	 * @param dessert_name
	 * @param price
	 * @param quantity
	 * @param discount
	 * @param subtotal
	 */
	public BookDetail(int id, int book_id, String dessert_name, Double price,
			int quantity, double discount, double subtotal){
		this.id = id;
		this.book_id = book_id;
		this.dessert_name = dessert_name;
		this.price = price;
		this.quantity =  quantity;
		this.discount = discount;
		this.subtotal = subtotal;
	}
	
	/**
	 * use to do insert
	 * @param book_id
	 * @param dessert_name
	 * @param price
	 * @param quantity
	 * @param discount
	 * @param subtotal
	 */
	public BookDetail(int book_id, String dessert_name, Double price,
			int quantity, double discount, double subtotal){
		this.book_id = book_id;
		this.dessert_name = dessert_name;
		this.price = price;
		this.quantity =  quantity;
		this.discount = discount;
		this.subtotal = subtotal;
	}
	
	/**
	 * use to do insert
	 * @param dessert_name
	 * @param price
	 * @param quantity
	 * @param discount
	 * @param subtotal
	 */
	public BookDetail( String dessert_name, Double price,
			int quantity, double discount, double subtotal){
		this.dessert_name = dessert_name;
		this.price = price;
		this.quantity =  quantity;
		this.discount = discount;
		this.subtotal = subtotal;
	}



	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the book_id
	 */
	public int getBook_id() {
		return book_id;
	}

	/**
	 * @param book_id the book_id to set
	 */
	public void setBook_id(int book_id) {
		this.book_id = book_id;
	}

	/**
	 * @return the dessert_name
	 */
	public String getDessert_name() {
		return dessert_name;
	}

	/**
	 * @param dessert_name the dessert_name to set
	 */
	public void setDessert_name(String dessert_name) {
		this.dessert_name = dessert_name;
	}

	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @return the quantity
	 */
	public int getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return the discount
	 */
	public double getDiscount() {
		return discount;
	}

	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(double discount) {
		this.discount = discount;
	}

	/**
	 * @return the subtotal
	 */
	public double getSubtotal() {
		return subtotal;
	}

	/**
	 * @param subtotal the subtotal to set
	 */
	public void setSubtotal(double subtotal) {
		this.subtotal = subtotal;
	}

	
	

}
